package com.itheima.homework;

public class Student extends Person {

    private String name; // 姓名
    private int age; // 年龄
    private String birthday; // 生日
    private String school; // 所在学校

    public Student(String name, int age, String birthday, String school) {
        super(name, age, birthday);
        this.school = school;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    // 获取信息的方法
    public String getInfo() {
        return "Student[name=" + getName() + ", age=" + getAge() + ", birthday=" + getBirthday() + ", school=" + getSchool() + "]";
    }
}
